package org.stan.beanvalidator.deletage;

import org.stan.beanvalidator.utils.PatternUtil;
import org.stan.beanvalidator.utils.ValidateConstant;

/**
 * @ClassName 美国邮编校验器执行者 USAPostCodeValidator
 * @Author src
 * @Date 2020-07-12 10:46
 * @Discriptions
 */
public class USAPostCodeValidator implements IPostCodeDeletage{
    @Override
    public boolean validatePostCode(String postCode) {
        return PatternUtil.patternPostCode(ValidateConstant.REGEX_USA,postCode);
    }
}
